<?
include "../config/constants.php";

$us = 1;
$ms = $us*1000;
$s = $ms*1000;

for( $i=0; $i<19; $i++ )
{
	usleep(3*$s);
	$mid = MEDIAFARM_MODULE_ID;
	$msg = "<request><mid>$mid</mid><status>Running</status></request";

	$req = new HttpRequest("http://canss.net/CANSSWebService/svtAjaxModuleStatusUpdate", HttpRequest::METH_POST);
	$req->addPostFields(array('_param'=>$msg));
	$body = $req->send()->getBody();
	//echo $body;
}
?>
